<!DOCTYPE html>
<html>
  <head>
    <title>菜单管理-编辑</title>
 		<#include "fsoft-common.ftl" />
  </head>
  <body>
  <div class="layui-fluid">
    <div class="layui-card">
      <div class="layui-card-body">
        <form class="layui-form layui-form-pane" action="" method="post" lay-filter="form-menu">
          <input type="hidden" name="id" id="id" value="${menu.id}"/>
          <input type="hidden" name="parentId" id="parentId" value="${menu.parentId}"/>
          <input type="hidden" name="icon" id="icon" value="${menu.icon}"/>
            <div class="layui-row layui-col-space5">
              <div class="layui-col-sm12">
                <div class="layui-form-item">
                  <label for="name" class="layui-form-label">
                    <span class="x-red">*</span>菜单类型
                  </label>
                  <div class="layui-input-block">
                    <select class="layui-form-select" name="menuType" lay-filter="menu-menuType">
                      <option value="0" <#if menu.menuType==0>selected</#if> >目录</option>
                      <option value="1" <#if menu.menuType==1>selected</#if> >菜单</option>
                      <option value="2" <#if menu.menuType==2>selected</#if> >按钮</option>
                      <option value="3" <#if menu.menuType==3>selected</#if> >其他</option>
                    </select>
                  </div>
                </div>
              </div>
              <div class="layui-col-sm12">
                <div class="layui-form-item">
                    <label for="name" class="layui-form-label">上级目录</label>
                    <div class="layui-input-block">
                      <div id="xm-select-menuTrees" class="layui-form-select xm-select-demo"></div>
                    </div>
                </div>
              </div>
              <div class="layui-col-sm12">
                <div class="layui-form-item">
                    <label for="F_code" class="layui-form-label">编码</label>
                    <div class="layui-input-block">
                        <input class="layui-input" type="text" id="code" name="code" value="${menu.code}" autocomplete="off">
                    </div>
                </div>
              </div>
              <div class="layui-col-sm12">
                <div class="layui-form-item">
                  <label class="layui-form-label">
                    <span class="x-red">*</span>名称
                  </label>
                  <div class="layui-input-block">
                    <input class="layui-input" type="text" id="name" name="name" value="${menu.name}" required="" lay-verify="required" autocomplete="off">
                  </div>
                </div>
              </div>
              <div class="layui-col-sm12">
                <div class="layui-form-item">
                  <label class="layui-form-label">权限标识</label>
                  <div class="layui-input-block">
                    <input class="layui-input" type="text" id="perms" name="perms" value="${menu.perms}">
                  </div>
                </div>
              </div>
              <div class="layui-col-sm12">
                <div class="layui-form-item" id="F_actionUrl">
                <label class="layui-form-label">功能URL</label>
                  <div class="layui-input-block">
                    <input class="layui-input" type="text" id="actionUrl" name="actionUrl" value="${menu.actionUrl}">
                  </div>
                </div>
              </div>
              <div class="layui-col-sm12">
                <div class="layui-form-item" id="F_icon">
                  <label class="layui-form-label">图标</label>
                  <div class="layui-input-block">
                    <div id="xm-select-icons" class="xm-select-demo"></div>
                  </div>
                </div>
              </div>
              <div class="layui-col-sm12">
                <div class="layui-form-item">
                  <label class="layui-form-label">排序</label>
                  <div class="layui-input-block">
                    <input class="layui-input" type="text" id="sortNo" name="sortNo" value="${menu.sortNo}" lay-verify="number">
                  </div>
                </div>
              </div>
            </div>
            <div class="layui-row layui-col-space5">
              <div class="layui-col-xs2 layui-col-xs-offset10">
                <div class="layui-btn-container">
                  <button class="layui-btn layui-btn-sm layui-btn-normal" lay-submit lay-filter="save">
                    <i class="fa fa-save" aria-hidden="true" ></i> 保 存
                  </button>
                </div>
              </div>
            </div>
          </form>
        </div>
      </div>
    </div>
  </body>
	<#include "fsoft-common-foot.ftl" />
	<script type="text/javascript" src="${request.contextPath}/static/fsoft-web/menu/sysmenu-modify.js?v=202002"></script>
</html>
